<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the id=main div and all content
 * after.  Calls sidebar-footer.php for bottom widgets.
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */
?>
	</div><!-- #main -->

	<div id="footer" role="contentinfo">
		<div id="colophon">

<?php
	/* A sidebar in the footer? Yep. You can can customize
	 * your footer with four columns of widgets.
	 */
	get_sidebar( 'footer' );
?>
		<!--友情链接 开始-->
		<div id="friend-link">
			<div class = "catlh">
						<div class = "catrh">
						<div class="cat-header">
						   <span class = "cat-title left">
							   <h2>
								<?php _e('友情链接', 'xiufanr');?>
								</h2>
							</span>
							<span class = "cat-more right" >
								<ul>
									<li>
									<a href = "<?php echo get_settings('home'); ?>/friendlink"><?php _e('所有链接', 'xiufanr');?></a><span>|</span>
									<a href = "<?php echo get_settings('home'); ?>/friendlink"><?php _e('申请加入', 'xiufanr');?></a>
									</li>
								</ul>
							</span>
					  </div><!--cat-header-->
					  </div><!--catrh-->
					  </div><!--catlh-->
					  <div class="flink" >
							<ul>
							<?php wp_list_bookmarks('categorize=0&title_li=');?>
							</ul>
					  </div><!--cat-entry-->
					  <div class = "bg-bottom">
							<div class = "bg-bottom-r"></div>
					  </div>
		</div><!--#friend-link-->
		
		<!-- 底部功能菜单 开始 -->
	<div id="foot_about">
    			<a href="<?php echo get_settings('home'); ?>"><?php _e('返回首页');?><?php echo $langblog;?></a> | 
                <!--a href="<?php // echo get_settings('home'); ?>/aboutus"><?php //_e('关于我们');?></a--> 
                <a href="<?php echo get_settings('home'); ?>/contactus"><?php _e('联系我们');?></a> | 
                <a href="<?php echo get_settings('home'); ?>/advertisement"><?php _e('广告合作');?></a> | 
                <a href="<?php echo get_settings('home'); ?>/sitemaps"><?php _e('网站地图');?></a> | 
                <a href="<?php echo get_settings('home'); ?>/friendlink"><?php _e('友情链接');?></a> 
                <!--a href="<?php //echo get_settings('home'); ?>/copyright"><?php //_e('版权声明');?></a--> 
    </div>
<!-- 底部功能菜单 结束 -->
			<div id="site-info">
				<?php
		$blog_name = '<a href="'.get_bloginfo('url').'">'.get_bloginfo('name').'</a>';
		printf(__('Copyright %s %s %s '),'&copy;',date('Y'),$blog_name)
		;?>
		
			<!--百度统计-->
				<script type="text/javascript">
				var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
				document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F78ba148d9ce7acc388694a38559fb7b4' type='text/javascript'%3E%3C/script%3E"));
				</script>
			</div><!-- #site-info -->


			<div id="site-generator">
				<?php do_action( 'twentyten_credits' ); ?>
				<a href="<?php echo esc_url( __('http://wordpress.org/', 'twentyten') ); ?>"
						title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'twentyten'); ?>" rel="generator">
					<?php printf( __('Proudly powered by %s.', 'twentyten'), 'WordPress' ); ?>
				</a>
			</div><!-- #site-generator -->

		</div><!-- #colophon -->
	</div><!-- #footer -->

</div><!-- #wrapper -->

<?php
	/* Always have wp_footer() just before the closing </body>
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to reference JavaScript files.
	 */

	wp_footer();
?>
</body>
</html>
